# == Schema Information
# Schema version: 2
#
# Table name: jobs
#
#  id           :integer       not null, primary key
#  created_at   :datetime
#  updated_at   :datetime
#  title        :string(255)   not null
#  company      :string(255)   not null
#  url          :string(255)   not null
#  location     :string(255)   not null
#  instructions :string(255)   not null
#  description  :text          not null
#  user_id      :integer
#

class Job < ActiveRecord::Base

  acts_as_textiled :description

  validates_presence_of :title, :company, :location, :description, :message => 'can not be blank'[]
  belongs_to :user

  cattr_reader :per_page
  @@per_page = 10

end
